﻿@if (Value is not null)
{
    <div class="d-flex flex-wrap justify-content-between" style="color:#999">
        <div>
            <small>
                <ItemTimeDisplay CreationTime="@Value.CreationTime" ModificationTime="@Value.ModificationTime" />
            </small>
            @if (Value.Category is not null && Value.Category.Items.Any())
            {
                <small class="m-1"></small>
                <small>
                    <CategoryDisplay Data="@Value.Category" />
                </small>
            }
            @if (Value.Keywords is not null && Value.Keywords.Items.Any())
            {
                <small class="m-1"></small>
                <small>
                    <KeywordDisplay Data="@Value.Keywords" />
                </small>
            }
        </div>

        <div>
            @if (!string.IsNullOrEmpty(Value.Content.Raw))
            {
                <small class="m-1"></small>
                <small>
                    <WordCountDisplay Document="@Value.Content" />
                </small>
                <small class="m-1"></small>
                <small>
                    <ReadTimeDisplay Document="@Value.Content" />
                </small>
            }
            <small class="m-1"></small>
            <small>
                <PostVisitorDisplay Data="@Value" />
            </small>
            <small class="m-1"></small>
            <small>
                <PostCommentDisplay Data="@Value" />
            </small>
        </div>
    </div>
}

@code {
    [Parameter]
    public Post Value { get; set; }
}
